#include<bits/stdc++.h>

using namespace std;
//p[i]  = *(p+i)
//&p[i] =p+i


int main() {
    int a[] = {1, 3, 5, 7, 9, 2, 4, 6, 8, 0};
    int *p = a + 3;
    cout << a[5] << endl;//2
    cout << p[3] << endl;//4
    cout << p[-1] << endl;//5
    cout << p - a << endl;//3
    cout << (p + 2)[-3] << endl;//5


    return 0;
}
